package com.imay.live.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

import static com.imay.live.adapter.CommentAdapter.VIEW_TYPE_ENABLE;

/**
 * Created by chan on 2017/4/12.
 */
public class CommentModel implements MultiItemEntity {

    /**
     * id : 10504
     * uid : 4245
     * content : 美hfscbb
     * createTime : 1491394859
     * replyToUser : null
     * atUsers : [{"uid":4223,"roomId":114741,"nick":"白Sè宝儿","imgHead":"http://odfjym91z.bkt.clouddn.com/rbt/w0484.jpg","sex":1,"userLevel":26,"liveLevel":36,"vip":0}]
     * labels : null
     */

    private int id;
    private UserModel user;
    private String content;
    private int createTime;
    private UserModel replyToUser;
    private List<String> labels;
    private List<UserModel> atUsers;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public UserModel getReplyToUser() {
        return replyToUser;
    }

    public void setReplyToUser(UserModel replyToUser) {
        this.replyToUser = replyToUser;
    }

    public List<String> getLabels() {
        return labels;
    }

    public void setLabels(List<String> labels) {
        this.labels = labels;
    }

    public List<UserModel> getAtUsers() {
        return atUsers;
    }

    public void setAtUsers(List<UserModel> atUsers) {
        this.atUsers = atUsers;
    }

    public UserModel getUser() {
        return user;
    }

    public void setUser(UserModel user) {
        this.user = user;
    }

    @Override
    public int getItemType() {
        return VIEW_TYPE_ENABLE;
    }
}
